package com.cool.islife.service;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;


/**
 * User: cool
 * Date: 2018/1/30
 * Time: 11:29
 */
@Service
public class TestServiceImpl {
    Logger logger = Logger.getLogger(TestServiceImpl.class);

    public void test(){
        try {
            int a = 1/0;
        }catch (Exception e){
            e.printStackTrace();
            System.out.println(e.getMessage());
            logger.error("",e);
            logger.info("--------->"+e.getMessage());

        }

    }

    public void test1(){
        int a = 1/0;
    }

}
